#!/bin/bash

# ***************************************************************************
# * 
# * @file:build_libtool.sh 
# * @author:ebayboy@163.com 
# * @date:2019-11-20 20:02 
# * @version 1.0  
# * @description: Shell script 
# * @Copyright (c)  all right reserved 
#* 
#**************************************************************************/ 

#remove old
yum remove libtool

wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.gz

tar -zxf libtool-2.4.6.tar.gz

mv libtool* libtool

cd libtool 

./configure --prefix=/usr/local/libtool || exit 1

make -j4 && make install

#connect libtool && aclocal 
cp /usr/local/libtool/share/aclocal/*.m4   /usr/share/aclocal


exit 0

